package com.shawn.spring.boot.mybatis.service;

import com.shawn.spring.boot.mybatis.entity.Role;
import java.util.List;

public interface RoleService {

  void add(Role role);

  Role findById(long id);

  List<Role> findByUserId(long userId);

  List<Role> findByName(String name);
}
